.class public Lcom/estrongs/android/util/l0;
.super Ljava/lang/Object;
.source "Settings.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/util/l0$d;
    }
.end annotation


# static fields
.field private static final a:Ljava/lang/String;

.field private static b:Ljava/lang/String;

.field private static final c:[Lcom/estrongs/android/util/l0$d;

.field private static final d:[Lcom/estrongs/android/util/l0$d;

.field private static final e:[Ljava/lang/String;

.field private static final f:[Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 16

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/estrongs/android/pop/a;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/settings/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    const/4 v0, 0x0

    .line 2
    sput-object v0, Lcom/estrongs/android/util/l0;->b:Ljava/lang/String;

    const/4 v1, 0x2

    new-array v2, v1, [Lcom/estrongs/android/util/l0$d;

    .line 3
    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const/4 v4, 0x0

    const-string v5, "fex_version"

    invoke-direct {v3, v5, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    aput-object v3, v2, v4

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v5, "apkMtime"

    invoke-direct {v3, v5, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/4 v6, 0x1

    aput-object v3, v2, v6

    sput-object v2, Lcom/estrongs/android/util/l0;->c:[Lcom/estrongs/android/util/l0$d;

    const/16 v2, 0x16

    new-array v2, v2, [Lcom/estrongs/android/util/l0$d;

    .line 4
    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v7, "recomm_last_check_time"

    invoke-direct {v3, v7, v6}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    aput-object v3, v2, v4

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    invoke-direct {v3, v5, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    aput-object v3, v2, v6

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v5, "PCS_remind_upgrade_time"

    invoke-direct {v3, v5, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    aput-object v3, v2, v1

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v5, "last_statistics"

    invoke-direct {v3, v5, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/4 v5, 0x3

    aput-object v3, v2, v5

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v7, "last_pcs_access"

    invoke-direct {v3, v7, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/4 v7, 0x4

    aput-object v3, v2, v7

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v8, "upgrade_last_check_time"

    invoke-direct {v3, v8, v6}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/4 v8, 0x5

    aput-object v3, v2, v8

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v9, "last_request_push_data_time"

    invoke-direct {v3, v9, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/4 v9, 0x6

    aput-object v3, v2, v9

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v10, "last_pcs_verify"

    invoke-direct {v3, v10, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/4 v10, 0x7

    aput-object v3, v2, v10

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v11, "pcs_uinfo_timestamp"

    invoke-direct {v3, v11, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v11, 0x8

    aput-object v3, v2, v11

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v12, "card_update_time"

    invoke-direct {v3, v12, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v12, 0x9

    aput-object v3, v2, v12

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v13, "recomm_last_click_dusb_time"

    invoke-direct {v3, v13, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v13, 0xa

    aput-object v3, v2, v13

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v14, "last_remote_setting_update_time"

    invoke-direct {v3, v14, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v14, 0xb

    aput-object v3, v2, v14

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_1"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0xc

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_2"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0xd

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_3"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0xe

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_4"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0xf

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_5"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0x10

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_6"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0x11

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_7"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0x12

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_8"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0x13

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "home_log_corner_mark_9"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0x14

    aput-object v3, v2, v15

    new-instance v3, Lcom/estrongs/android/util/l0$d;

    const-string v15, "log_clear_time"

    invoke-direct {v3, v15, v4}, Lcom/estrongs/android/util/l0$d;-><init>(Ljava/lang/String;I)V

    const/16 v15, 0x15

    aput-object v3, v2, v15

    sput-object v2, Lcom/estrongs/android/util/l0;->d:[Lcom/estrongs/android/util/l0$d;

    new-array v2, v12, [Ljava/lang/String;

    aput-object v0, v2, v4

    const-string v0, "preference"

    aput-object v0, v2, v6

    const-string v0, "serverlistdb"

    aput-object v0, v2, v1

    const-string v0, "serverlistdb3"

    aput-object v0, v2, v5

    const-string v0, "serverlistdb4"

    aput-object v0, v2, v7

    const-string v0, "serverlistdb5"

    aput-object v0, v2, v8

    const-string v0, "serverlistdb6"

    aput-object v0, v2, v9

    const-string v0, "serverlistdb7"

    aput-object v0, v2, v10

    const-string v0, "serverlistdb8"

    aput-object v0, v2, v11

    .line 5
    sput-object v2, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    new-array v0, v14, [Ljava/lang/String;

    const-string v2, "Boxnet.cfg"

    aput-object v2, v0, v4

    const-string v2, "Skydrv.cfg"

    aput-object v2, v0, v6

    const-string v2, "Gdrive.cfg"

    aput-object v2, v0, v1

    const-string v1, "Ubuntu.cfg"

    aput-object v1, v0, v5

    const-string v1, "S3.cfg"

    aput-object v1, v0, v7

    const-string v1, "Dropbox.cfg"

    aput-object v1, v0, v8

    const-string v1, "SugarSync.cfg"

    aput-object v1, v0, v9

    const-string v1, "Pcs.cfg"

    aput-object v1, v0, v10

    const-string v1, "Flickr.cfg"

    aput-object v1, v0, v11

    const-string v1, "Instagram.cfg"

    aput-object v1, v0, v12

    const-string v1, "Facebook.cfg"

    aput-object v1, v0, v13

    .line 6
    sput-object v0, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/io/File;

    sget-object v1, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    return-void
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;)I
    .locals 7

    .line 6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "/"

    invoke-virtual {p2, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    :goto_0
    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "ESSettings"

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, ".zip"

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 7
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 8
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_1

    .line 9
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v4, 0x7f11065a

    .line 10
    invoke-virtual {p1, v4}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    const v4, 0x7f11043f

    .line 11
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-array v5, v3, [Ljava/lang/Object;

    const-string v6, "ESSettings.zip"

    aput-object v6, v5, v2

    invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    const v4, 0x7f11029e

    new-instance v5, Lcom/estrongs/android/util/l0$b;

    invoke-direct {v5, p0, p2, v0, p1}, Lcom/estrongs/android/util/l0$b;-><init>(Lcom/estrongs/android/util/l0;Ljava/lang/String;Ljava/io/File;Landroid/content/Context;)V

    .line 12
    invoke-virtual {v1, v4, v5}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p1, 0x7f110299

    new-instance p2, Lcom/estrongs/android/util/l0$a;

    invoke-direct {p2, p0}, Lcom/estrongs/android/util/l0$a;-><init>(Lcom/estrongs/android/util/l0;)V

    .line 13
    invoke-virtual {v1, p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 14
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    .line 15
    invoke-virtual {p1, v2}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 16
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return v3

    :cond_1
    const/4 p1, -0x1

    .line 17
    :try_start_0
    new-instance v0, Ljava/util/HashMap;

    const/4 v1, 0x2

    invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(I)V

    const-string v1, "compress_level"

    .line 18
    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v1, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 19
    new-instance v1, Les/n80;

    const/4 v4, 0x0

    invoke-direct {v1, v4}, Les/n80;-><init>(Les/a80;)V

    .line 20
    invoke-virtual {v1, v3}, Les/n80;->a(Z)V

    .line 21
    new-instance v3, Les/f80;

    invoke-direct {v3, p2, v1, v0}, Les/f80;-><init>(Ljava/lang/String;Les/l80;Ljava/util/Map;)V

    .line 22
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 23
    sget-object v1, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 24
    invoke-virtual {v3, v0}, Les/f80;->a(Ljava/util/List;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_1

    .line 25
    :try_start_1
    invoke-direct {p0}, Lcom/estrongs/android/util/l0;->b()V

    .line 26
    new-instance v0, Ljava/io/File;

    sget-object v1, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 27
    invoke-virtual {v0}, Ljava/io/File;->delete()Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 28
    :catch_0
    :try_start_2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/estrongs/android/pop/l;->W(Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/NullPointerException; {:try_start_2 .. :try_end_2} :catch_1

    return v2

    :catch_1
    return p1

    :catch_2
    move-exception p2

    .line 29
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    return p1

    :catch_3
    move-exception p2

    .line 30
    invoke-virtual {p2}, Ljava/io/IOException;->printStackTrace()V

    return p1
.end method

.method static synthetic a()Ljava/lang/String;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/estrongs/android/util/l0;)V
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/util/l0;->b()V

    return-void
.end method

.method public static a(Ljava/lang/String;)V
    .locals 2

    const-string v0, "/"

    .line 3
    invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 4
    sput-object p0, Lcom/estrongs/android/util/l0;->b:Ljava/lang/String;

    goto :goto_0

    .line 5
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    sput-object p0, Lcom/estrongs/android/util/l0;->b:Ljava/lang/String;

    :goto_0
    return-void
.end method

.method private a(ILjava/lang/String;[Lcom/estrongs/android/util/l0$d;)Z
    .locals 3

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 64
    :goto_0
    array-length v2, p3

    if-ge v1, v2, :cond_1

    .line 65
    aget-object v2, p3, v1

    iget v2, v2, Lcom/estrongs/android/util/l0$d;->b:I

    if-ne p1, v2, :cond_0

    .line 66
    aget-object v2, p3, v1

    iget-object v2, v2, Lcom/estrongs/android/util/l0$d;->a:Ljava/lang/String;

    invoke-virtual {p2, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return v0
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 5

    const/high16 v0, 0x80000

    new-array v1, v0, [B

    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 25
    :try_start_0
    invoke-static {p1, p2, v2}, Lcom/estrongs/fs/impl/local/f;->a(Landroid/content/Context;Ljava/lang/String;Z)Ljava/io/InputStream;

    move-result-object p1

    if-nez p1, :cond_0

    return-object v3

    :cond_0
    const/4 p2, 0x0

    const/4 v2, 0x0

    :goto_0
    sub-int v4, v0, v2

    .line 26
    invoke-virtual {p1, v1, v2, v4}, Ljava/io/InputStream;->read([BII)I

    move-result v4

    if-lez v4, :cond_1

    add-int/2addr v2, v4

    goto :goto_0

    .line 27
    :cond_1
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V

    .line 28
    new-instance p1, Ljava/lang/String;

    invoke-direct {p1, v1, p2, v2}, Ljava/lang/String;-><init>([BII)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    return-object v3
.end method

.method private b()V
    .locals 4

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 1
    :goto_0
    :try_start_0
    sget-object v2, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    array-length v2, v2

    if-ge v1, v2, :cond_1

    .line 2
    sget-object v2, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v2, v2, v1

    if-nez v2, :cond_0

    .line 3
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "default"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_1

    .line 4
    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v3, v3, v1

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 5
    :goto_1
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 6
    invoke-virtual {v3}, Ljava/io/File;->delete()Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 7
    :cond_1
    :goto_2
    sget-object v1, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    array-length v1, v1

    if-ge v0, v1, :cond_2

    .line 8
    new-instance v1, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    aget-object v3, v3, v0

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 9
    invoke-virtual {v1}, Ljava/io/File;->delete()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    :catch_0
    :cond_2
    return-void
.end method

.method private b(Ljava/lang/String;)Z
    .locals 5

    const/4 v0, 0x0

    .line 10
    :try_start_0
    new-instance v1, Ljava/io/File;

    sget-object v2, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 11
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/util/l0;->b()V

    .line 13
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 14
    :cond_0
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string v2, "charset_name"

    const-string v3, "UTF-8"

    .line 15
    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v2, "reload"

    const-string v3, "true"

    .line 16
    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 17
    invoke-static {p1, v1}, Les/z70;->b(Ljava/lang/String;Ljava/util/Map;)Les/e80;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 18
    :try_start_1
    new-instance v1, Lcom/estrongs/android/util/l0$c;

    sget-object v2, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, p0, v0, v2}, Lcom/estrongs/android/util/l0$c;-><init>(Lcom/estrongs/android/util/l0;Les/a80;Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 19
    invoke-virtual {v1, v0}, Les/n80;->a(Z)V

    .line 20
    invoke-virtual {p1, v1}, Les/e80;->a(Les/k80;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p1, :cond_1

    .line 21
    invoke-virtual {p1}, Les/e80;->k()V

    :cond_1
    return v0

    :catchall_0
    move-exception v0

    move-object v4, v0

    move-object v0, p1

    move-object p1, v4

    goto :goto_1

    :catch_0
    move-exception v0

    move-object v4, v0

    move-object v0, p1

    move-object p1, v4

    goto :goto_0

    :catchall_1
    move-exception p1

    goto :goto_1

    :catch_1
    move-exception p1

    .line 22
    :goto_0
    :try_start_2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    const/4 p1, 0x0

    if-eqz v0, :cond_2

    .line 23
    invoke-virtual {v0}, Les/e80;->k()V

    :cond_2
    return p1

    :goto_1
    if-eqz v0, :cond_3

    invoke-virtual {v0}, Les/e80;->k()V

    .line 24
    :cond_3
    throw p1
.end method


# virtual methods
.method public a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
    .locals 7

    const/4 v0, -0x1

    .line 31
    :try_start_0
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 32
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_0

    .line 33
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    move-result v1

    if-nez v1, :cond_0

    return v0

    .line 34
    :cond_0
    new-instance v1, Ljava/io/File;

    sget-object v2, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 35
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_1

    .line 36
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    goto :goto_0

    .line 37
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/util/l0;->b()V

    :goto_0
    if-eqz p3, :cond_2

    .line 38
    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_2

    .line 39
    new-instance v1, Lcom/estrongs/android/util/i;

    invoke-direct {v1, p3}, Lcom/estrongs/android/util/i;-><init>(Ljava/lang/String;)V

    goto :goto_1

    .line 40
    :cond_2
    new-instance v1, Lcom/estrongs/android/util/i;

    const-string p3, "!@#$dd"

    invoke-direct {v1, p3}, Lcom/estrongs/android/util/i;-><init>(Ljava/lang/String;)V

    :goto_1
    const/4 p3, 0x0

    const/4 v2, 0x0

    .line 41
    :goto_2
    sget-object v3, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    array-length v3, v3

    if-ge v2, v3, :cond_5

    .line 42
    sget-object v3, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v3, v3, v2

    if-nez v3, :cond_3

    .line 43
    invoke-static {p1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 44
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v5, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, "default"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_3

    .line 45
    :cond_3
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    sget-object v4, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v4, v4, v2

    invoke-virtual {v3, v4, p3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 46
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v5, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v5, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v5, v5, v2

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 47
    :goto_3
    new-instance v5, Lorg/json/simple/JSONObject;

    invoke-direct {v5}, Lorg/json/simple/JSONObject;-><init>()V

    .line 48
    invoke-interface {v3}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v3

    .line 49
    invoke-interface {v3}, Ljava/util/Map;->isEmpty()Z

    move-result v6

    if-nez v6, :cond_4

    .line 50
    invoke-virtual {v5, v3}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    .line 51
    invoke-virtual {v5}, Lorg/json/simple/JSONObject;->toJSONString()Ljava/lang/String;

    move-result-object v3

    .line 52
    invoke-virtual {v1, v3}, Lcom/estrongs/android/util/i;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 53
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/f;->g(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v4

    .line 54
    invoke-virtual {v3}, Ljava/lang/String;->getBytes()[B

    move-result-object v3

    invoke-virtual {v4, v3}, Ljava/io/OutputStream;->write([B)V

    .line 55
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V

    :cond_4
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 56
    :cond_5
    :goto_4
    sget-object v2, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    array-length v2, v2

    if-ge p3, v2, :cond_7

    .line 57
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/util/l0;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    aget-object v3, v3, p3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, p1, v2}, Lcom/estrongs/android/util/l0;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    if-nez v2, :cond_6

    goto :goto_5

    .line 58
    :cond_6
    :try_start_1
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v4, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    aget-object v4, v4, p3

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/fs/impl/local/f;->g(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v3

    .line 59
    invoke-virtual {v1, v2}, Lcom/estrongs/android/util/i;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 60
    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/io/OutputStream;->write([B)V

    .line 61
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :goto_5
    add-int/lit8 p3, p3, 0x1

    goto :goto_4

    :cond_7
    if-nez p2, :cond_8

    return v0

    .line 62
    :cond_8
    :try_start_2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/util/l0;->a(Landroid/content/Context;Ljava/lang/String;)I

    move-result p1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    return p1

    :catch_1
    move-exception p1

    .line 63
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return v0
.end method

.method public b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
    .locals 12

    const-string v0, "\r\n"

    if-eqz p2, :cond_0

    .line 29
    :try_start_0
    invoke-direct {p0, p2}, Lcom/estrongs/android/util/l0;->b(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_0

    const/4 p1, -0x2

    return p1

    :catch_0
    move-exception p1

    goto/16 :goto_c

    :cond_0
    if-eqz p3, :cond_1

    .line 30
    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result p2

    if-lez p2, :cond_1

    .line 31
    new-instance p2, Lcom/estrongs/android/util/i;

    invoke-direct {p2, p3}, Lcom/estrongs/android/util/i;-><init>(Ljava/lang/String;)V

    goto :goto_0

    .line 32
    :cond_1
    new-instance p2, Lcom/estrongs/android/util/i;

    const-string p3, "!@#$dd"

    invoke-direct {p2, p3}, Lcom/estrongs/android/util/i;-><init>(Ljava/lang/String;)V

    :goto_0
    const/4 p3, 0x0

    const/4 v1, 0x0

    .line 33
    :goto_1
    sget-object v2, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    array-length v2, v2

    if-ge v1, v2, :cond_d

    .line 34
    sget-object v2, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v2, v2, v1

    if-nez v2, :cond_2

    .line 35
    invoke-static {p1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 36
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "default"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_2

    .line 37
    :cond_2
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    sget-object v3, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v3, v3, v1

    invoke-virtual {v2, v3, p3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 38
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v4, Lcom/estrongs/android/util/l0;->e:[Ljava/lang/String;

    aget-object v4, v4, v1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 39
    :goto_2
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    .line 40
    invoke-direct {p0, p1, v3}, Lcom/estrongs/android/util/l0;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_3

    goto/16 :goto_4

    .line 41
    :cond_3
    invoke-virtual {p2, v3}, Lcom/estrongs/android/util/i;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 42
    new-instance v4, Lorg/json/simple/parser/JSONParser;

    invoke-direct {v4}, Lorg/json/simple/parser/JSONParser;-><init>()V

    .line 43
    invoke-virtual {v4, v3}, Lorg/json/simple/parser/JSONParser;->parse(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map;

    .line 44
    invoke-interface {v3}, Ljava/util/Map;->isEmpty()Z

    move-result v4

    if-nez v4, :cond_c

    .line 45
    invoke-interface {v3}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

    .line 46
    :catch_1
    :cond_4
    :goto_3
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_b

    .line 47
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 48
    sget-object v6, Lcom/estrongs/android/util/l0;->c:[Lcom/estrongs/android/util/l0$d;

    invoke-direct {p0, v1, v5, v6}, Lcom/estrongs/android/util/l0;->a(ILjava/lang/String;[Lcom/estrongs/android/util/l0$d;)Z

    move-result v6

    if-eqz v6, :cond_5

    goto :goto_3

    .line 49
    :cond_5
    invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 50
    :try_start_1
    instance-of v7, v6, Ljava/lang/Integer;

    if-eqz v7, :cond_7

    .line 51
    sget-object v7, Lcom/estrongs/android/util/l0;->d:[Lcom/estrongs/android/util/l0$d;

    invoke-direct {p0, v1, v5, v7}, Lcom/estrongs/android/util/l0;->a(ILjava/lang/String;[Lcom/estrongs/android/util/l0$d;)Z

    move-result v7

    if-eqz v7, :cond_6

    .line 52
    new-instance v7, Ljava/lang/Long;

    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6

    int-to-long v8, v6

    invoke-direct {v7, v8, v9}, Ljava/lang/Long;-><init>(J)V

    invoke-virtual {v7}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    invoke-interface {v2, v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    goto :goto_3

    .line 53
    :cond_6
    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6

    invoke-interface {v2, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    goto :goto_3

    .line 54
    :cond_7
    instance-of v7, v6, Ljava/lang/String;

    if-eqz v7, :cond_8

    .line 55
    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v2, v5, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    goto :goto_3

    .line 56
    :cond_8
    instance-of v7, v6, Ljava/lang/Long;

    if-eqz v7, :cond_a

    .line 57
    sget-object v7, Lcom/estrongs/android/util/l0;->d:[Lcom/estrongs/android/util/l0$d;

    invoke-direct {p0, v1, v5, v7}, Lcom/estrongs/android/util/l0;->a(ILjava/lang/String;[Lcom/estrongs/android/util/l0$d;)Z

    move-result v7

    if-eqz v7, :cond_9

    .line 58
    check-cast v6, Ljava/lang/Long;

    invoke-virtual {v6}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    invoke-interface {v2, v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    goto :goto_3

    .line 59
    :cond_9
    check-cast v6, Ljava/lang/Long;

    invoke-virtual {v6}, Ljava/lang/Long;->intValue()I

    move-result v6

    invoke-interface {v2, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    goto :goto_3

    .line 60
    :cond_a
    instance-of v7, v6, Ljava/lang/Boolean;

    if-eqz v7, :cond_4

    .line 61
    check-cast v6, Ljava/lang/Boolean;

    invoke-virtual {v6}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v6

    invoke-interface {v2, v5, v6}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_3

    .line 62
    :cond_b
    :try_start_2
    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_c
    :goto_4
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    :cond_d
    const/4 v1, 0x0

    .line 63
    :goto_5
    sget-object v2, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    array-length v2, v2

    if-ge v1, v2, :cond_17

    .line 64
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    aget-object v3, v3, v1

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, p1, v2}, Lcom/estrongs/android/util/l0;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_e

    goto/16 :goto_b

    .line 65
    :cond_e
    invoke-virtual {p2, v2}, Lcom/estrongs/android/util/i;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 66
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/estrongs/android/util/l0;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v4, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    aget-object v4, v4, v1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, p1, v3}, Lcom/estrongs/android/util/l0;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    if-eqz v3, :cond_14

    .line 67
    invoke-virtual {v2, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    .line 68
    invoke-virtual {v3, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v6

    .line 69
    array-length v7, v5

    new-array v7, v7, [Z

    const/4 v8, 0x0

    .line 70
    :goto_6
    array-length v9, v5

    if-ge v8, v9, :cond_11

    .line 71
    aput-boolean v4, v7, v8

    const/4 v9, 0x0

    .line 72
    :goto_7
    array-length v10, v6

    if-ge v9, v10, :cond_10

    .line 73
    aget-object v10, v6, v9

    aget-object v11, v5, v8

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_f

    .line 74
    aput-boolean p3, v7, v8

    goto :goto_8

    :cond_f
    add-int/lit8 v9, v9, 0x1

    goto :goto_7

    :cond_10
    :goto_8
    add-int/lit8 v8, v8, 0x1

    goto :goto_6

    .line 75
    :cond_11
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v8, 0x0

    const/4 v9, 0x0

    .line 76
    :goto_9
    array-length v10, v5

    if-ge v8, v10, :cond_13

    .line 77
    aget-boolean v10, v7, v8

    if-eqz v10, :cond_12

    .line 78
    aget-object v9, v5, v8

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 79
    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/4 v9, 0x1

    :cond_12
    add-int/lit8 v8, v8, 0x1

    goto :goto_9

    :cond_13
    if-eqz v9, :cond_15

    .line 80
    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 81
    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_a

    :cond_14
    const/4 v9, 0x1

    :cond_15
    :goto_a
    if-eqz v9, :cond_16

    .line 82
    :try_start_3
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v5, Lcom/estrongs/android/util/l0;->b:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v5, Lcom/estrongs/android/util/l0;->f:[Ljava/lang/String;

    aget-object v5, v5, v1

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;Z)Ljava/io/OutputStream;

    move-result-object v3

    .line 83
    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/io/OutputStream;->write([B)V

    .line 84
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    :catch_2
    :cond_16
    :goto_b
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_5

    .line 85
    :cond_17
    :try_start_4
    invoke-direct {p0}, Lcom/estrongs/android/util/l0;->b()V

    .line 86
    new-instance p1, Ljava/io/File;

    sget-object p2, Lcom/estrongs/android/util/l0;->a:Ljava/lang/String;

    invoke-direct {p1, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 87
    invoke-virtual {p1}, Ljava/io/File;->delete()Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3

    :catch_3
    return p3

    .line 88
    :goto_c
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 89
    instance-of p1, p1, Ljavax/crypto/BadPaddingException;

    if-eqz p1, :cond_18

    const/4 p1, -0x3

    return p1

    :cond_18
    const/4 p1, -0x1

    return p1
.end method
